package cn.circle.system.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

/**
 * OrderDeatil entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "order_deatil")
@DynamicInsert(true)
@DynamicUpdate(true)
public class OrderDeatil implements java.io.Serializable {
	private static final long serialVersionUID = -6399658287187165507L;
	

	private Integer dtlId;
	private Integer commodityId;
	private String commodityName;
	private Integer commodityNums;
	private Float commodityAmount;
	private String dtlOrderNo;
	private Date createTime;//创建时间

	
	@Id
	@Column(name = "DTL_ID", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Integer getDtlId() {
		return this.dtlId;
	}

	public void setDtlId(Integer dtlId) {
		this.dtlId = dtlId;
	}

	@Column(name = "COMMODITY_ID")
	public Integer getCommodityId() {
		return this.commodityId;
	}

	public void setCommodityId(Integer commodityId) {
		this.commodityId = commodityId;
	}

	@Column(name = "COMMODITY_NAME")
	public String getCommodityName() {
		return this.commodityName;
	}

	public void setCommodityName(String commodityName) {
		this.commodityName = commodityName;
	}

	@Column(name = "COMMODITY_NUMS")
	public Integer getCommodityNums() {
		return this.commodityNums;
	}

	public void setCommodityNums(Integer commodityNums) {
		this.commodityNums = commodityNums;
	}

	@Column(name = "COMMODITY_AMOUNT", precision = 12, scale = 0)
	public Float getCommodityAmount() {
		return this.commodityAmount;
	}

	public void setCommodityAmount(Float commodityAmount) {
		this.commodityAmount = commodityAmount;
	}


	@Column(name = "DTL_ORDER_NO")
	public String getDtlOrderNo() {
		return this.dtlOrderNo;
	}

	public void setDtlOrderNo(String dtlOrderNo) {
		this.dtlOrderNo = dtlOrderNo;
	}
	
	@Column(name = "CREATE_TIME")
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}